<?

class graphDeviceTcpStatistics extends graphBase {
	protected $rrdFile = 'netstats_tcp.rrd';
	protected function getOptions() {
		return array(
			'DEF:tcpActiveOpens='.$this->rrdPath.':ActiveOpens:AVERAGE',
			'DEF:tcpPassiveOpens='.$this->rrdPath.':PassiveOpens:AVERAGE',
			'DEF:tcpAttemptFails='.$this->rrdPath.':AttemptFails:AVERAGE',
			'DEF:tcpEstabResets='.$this->rrdPath.':EstabResets:AVERAGE',
			'DEF:tcpInSegs='.$this->rrdPath.':InSegs:AVERAGE',
			'DEF:tcpOutSegs='.$this->rrdPath.':OutSegs:AVERAGE',
			'DEF:tcpRetransSegs='.$this->rrdPath.':RetransSegs:AVERAGE',
			'LINE1.25:tcpRetransSegs#cc00cc:RetransSegs ','GPRINT:tcpRetransSegs:LAST:%6.2lf%s','GPRINT:tcpRetransSegs:AVERAGE: %6.2lf%s','GPRINT:tcpRetransSegs:MAX: %6.2lf%s\n',
			'LINE1.25:tcpOutSegs#003399:OutSegs     ','GPRINT:tcpOutSegs:LAST:%6.2lf%s','GPRINT:tcpOutSegs:AVERAGE: %6.2lf%s','GPRINT:tcpOutSegs:MAX: %6.2lf%s\n',
			'LINE1.25:tcpInSegs#0066cc:InSegs      ','GPRINT:tcpInSegs:LAST:%6.2lf%s','GPRINT:tcpInSegs:AVERAGE: %6.2lf%s','GPRINT:tcpInSegs:MAX: %6.2lf%s\n',
			'LINE1.25:tcpEstabResets#660000:EstabResets ','GPRINT:tcpEstabResets:LAST:%6.2lf%s','GPRINT:tcpEstabResets:AVERAGE: %6.2lf%s','GPRINT:tcpEstabResets:MAX: %6.2lf%s\n',
			'LINE1.25:tcpAttemptFails#cc0000:AttemptFails','GPRINT:tcpAttemptFails:LAST:%6.2lf%s','GPRINT:tcpAttemptFails:AVERAGE: %6.2lf%s','GPRINT:tcpAttemptFails:MAX: %6.2lf%s\n',
			'LINE1.25:tcpPassiveOpens#006600:PassiveOpens','GPRINT:tcpPassiveOpens:LAST:%6.2lf%s','GPRINT:tcpPassiveOpens:AVERAGE: %6.2lf%s','GPRINT:tcpPassiveOpens:MAX: %6.2lf%s\n',
			'LINE1.25:tcpActiveOpens#00cc00:ActiveOpens ','GPRINT:tcpActiveOpens:LAST:%6.2lf%s','GPRINT:tcpActiveOpens:AVERAGE: %6.2lf%s','GPRINT:tcpActiveOpens:MAX: %6.2lf%s\n',
			'COMMENT:Packets/sec    Current    Average   Maximum\n'
		);
	}
}